package com.mqtt.demo1.properties;

import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author renyitong
 * @version 1.0.0
 * @createTime 2023年08月31日
 * @Description
 */
@Data
@ConfigurationProperties(prefix = "mqtt")
@EnableConfigurationProperties(MqttProperties.class)
@SpringBootConfiguration
public class MqttProperties {

    private String broker;
    private String clientId;

    private String username;
    private String password;

}
